{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <span class="fa fa-list" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">教师值日调动记录表{%$semester_data.semester_xname%}{%$semester_data.semester_name%}</p>
                </div>
                <div class="box-body">
                      <div class="col-md-4 form-group" style="float:left;">
						  <label for="inputPassword3" class="col-sm-3 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   学年学期：
						  </label>
						  <div class="input-group col-md-8" >
							   <select class="form-control" name="semester_id">
									{%foreach from=$semester_lists key=key item=value%}
                                   <option value="{%$value.semester_id%}" {%if $semester_id==$value.semester_id%}selected{%/if%}>{%$value.semester_xname%}{%$value.semester_name%}</option>
								   {%/foreach%}

                               </select>
						  </div> 
				    </div>
					<input type="hidden" name="a" value="duty.changelist">
				   <button type="submit" class="btn btn-warning">查 询</button>
                 </form> 
                    <div style="clear:both; height:2px;"></div>
                      <table class="table table-bordered table-striped" id="mytable">  
                          <thead>					  
                             <tr style="background-color:#5fb2dc;">
                                <td>地点</td>
                                <td>星期</td>
                                <td>半天</td>
                                <td>开始日期</td>
                                <td>结束日期</td> 
                                <td>原教师</td>
                                <td>调动原因</td>
                                <td>教师姓名</td>
                                <td>录入时间</td>      
							 </tr>
						 </thead>
							{%foreach from=$change_lists key=key item=value%}
                             <tr>
							    <td>{%$value.change_area%}</td>
                                <td>{%$value.change_week%}</td>
                                <td>{%$value.change_section%}</td>
                                <td>{%$value.change_start%}</td>
                                <td>{%$value.change_end%}</td> 
                                <td>{%$value.change_fromname%}</td>
                                <td>{%$value.change_note%}</td>
                                <td>{%$value.change_toname%}</td>
                                <td>{%$value.create_time%}</td> 
							 </tr>
							 {%/foreach%}

						 </table>   
						 {%$page%}
				    </div><!--box-body -->
             </div><!--box box-default box-solid-->
          </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
  {%include file="index.footer.tpl.php"%}
